<div class="col-md-12 search-box m-b-md">
	<div class="legend">查询条件</div>
	<div class="search-content">
		<div class="form-group">
			<label class="control-label">实例名称：</label>
			<input type="text" class="form-control" ng-model="$parent.name" placeholder="请输入实例名称"/>
		</div>
	</div>
	<div class="search-btn m-t">
		<button class="btn btn-primary w-xs m-r" ng-click="search()"><i class="fa fa-search"></i> 查询</button>
		<button class="btn btn-success w-xs m-r" ng-click="sync()"><i class="fa fa-hourglass-start"></i> 同步</button>
		<button class="btn btn-info" ng-click="create()"><i class="fa fa-plus"></i> 新建实例</button>
	</div>
</div>
<div class="col-md-12">
	<div class="table-responsive">
		<table class="table table-hover b-light m-b-xxs">
			<thead >
			<tr>
				<th class="text-center">实例名称</th>
				<th class="text-center">运行状态</th>
				<th class="text-center">创建时间</th>
				<th class="text-center">实例类型</th>
				<th class="text-center">数据库类型</th>
				<th class="text-center">所在可用区</th>
				<th class="text-center">网络类型</th>
				<th class="text-center">付费类型</th>
				<!--<th class="text-center">标签类型</th>-->
				<th class="text-center w">操作</th>
			</tr>
			</thead>
			<tbody>
			<tr ng-repeat="(key,row) in listData">
				<td class="text-center text-info">
					<a href="javascript:void(0)" ng-click="operation(3,row.id)" ng-bind="row.name"></a>
				</td>
				<td class="text-center" ng-bind="row.status|cn:'vmStatus'"></td>
				<td class="text-center" ng-bind="row.gmtCreate"></td>
				<td class="text-center" ng-bind="row.instanceType"></td>
				<td class="text-center" ng-bind="row.engine"></td>
				<td class="text-center" ng-bind="row.zoneId"></td>
				<td class="text-center" ng-bind="row.networkType"></td>
				<td class="text-center" ng-bind="row.payType"></td>
				<!--<td class="text-center" ng-bind="row.gmtCreate"></td>-->
				<td class="text-center">
					<button class="btn btn-sm btn-danger" ng-click="remove(row.id)"><i class="fa fa-trash-o"></i> 删除
					</button>
					<div class="btn-group dropdown table-operation" dropdown="">
						<a class="btn btn-info btn-addon" dropdown-toggle=""><i class="fa fa-reorder"></i>操作</a>
						<ul class="dropdown-menu">
							<li ng-click="operation(1,row.id)"><a href="">重启</a></li>
						</ul>
					</div>
				</td>
			</tr>
			</tbody>
		</table>
		<div class="clearfix">
			<div class="col-sm-6">
				<div class="paginationTables_info">共有<span ng-bind="totalPage"></span>条记录，每页显示<span ng-bind="param.rows"></span>条
				</div>
			</div>
			<div class="col-sm-6 text-right">
				<pagination boundary-links="true" total-items="totalPage" items-per-page="param.rows" max-size="10"
				            ng-model="param.page" ng-change="getList(param.page)" previous-text="&lsaquo;" next-text="&rsaquo;"
				            first-text="&laquo;" last-text="&raquo;"></pagination>
			</div>
		</div>
	</div>
</div>